package com.htzos.admin.ac.bean;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class AcNoticeBase implements java.io.Serializable{
//主键;
private Integer id;
//标题;
private String title;
//公告内容;
private String content;
//开始展示时间;
private Date startTime;
//结束展示时间;
private Date endTime;
//状态;
private Integer status;
//发布人;
private String creatUser;
//创建时间;
private Date createTime;

SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

private String getStrDate(Date time){
	return time==null?"":sdf.format(time);
}



public String getStrStartTime(){
	return getStrDate(startTime);
}

public void setStrStartTime(String time){
	try {
		startTime= sdf.parse(time);
	} catch (ParseException e) {
	}
}

public String getStrEndTime(){
	return getStrDate(endTime);
}

public void setStrEndTime(String time){
	try {
		endTime= sdf.parse(time);
	} catch (ParseException e) {
	}
}

public String getStrCreateTime(){
	return getStrDate(createTime);
}

public void setStrCreateTime(String time){
	try {
		createTime= sdf.parse(time);
	} catch (ParseException e) {
	}
}



public Integer getId(){
return this.id;
}
public void setId(Integer id){
this.id=id;
}
public String getTitle(){
return this.title;
}
public void setTitle(String title){
this.title=title;
}
public String getContent(){
return this.content;
}
public void setContent(String content){
this.content=content;
}
public Date getStartTime(){
return this.startTime;
}
public void setStartTime(Date startTime){
this.startTime=startTime;
}
public Date getEndTime(){
return this.endTime;
}
public void setEndTime(Date endTime){
this.endTime=endTime;
}
public Integer getStatus(){
return this.status;
}
public void setStatus(Integer status){
this.status=status;
}
public String getCreatUser(){
return this.creatUser;
}
public void setCreatUser(String creatUser){
this.creatUser=creatUser;
}
public Date getCreateTime(){
return this.createTime;
}
public void setCreateTime(Date createTime){
this.createTime=createTime;
}
}